Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Empty Tests for Examples #5076

Merged
merged 3 commits into from
Jan 4, 2024
Merged

Conversation

Pushkarm029
Copy link
Member

@yurishkuro, do we also need goleak tests in examples?

Which problem is this PR solving?

Description of the changes

  • Added Empty Tests for ./examples to reduce noise in make nocover.

How was this change tested?

  • go test

Checklist

@Pushkarm029 Pushkarm029 requested a review from a team as a code owner January 4, 2024 04:40
@Pushkarm029 Pushkarm029 requested a review from jkowall January 4, 2024 04:40
Copy link

github-actions bot commented Jan 4, 2024

Test Results

2 057 tests  ±0   2 047 ✅ ±0   1m 8s ⏱️ ±0s
  219 suites ±0      10 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit ca69919. ± Comparison against base commit 26da754.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Jan 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (26da754) 95.53% compared to head (ca69919) 95.54%.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #5076    +/-   ##
========================================
  Coverage   95.53%   95.54%            
========================================
  Files         317      313     -4     
  Lines       18349    18210   -139     
========================================
- Hits        17530    17398   -132     
+ Misses        658      652     -6     
+ Partials      161      160     -1     
Flag Coverage Δ
cassandra-3.x 25.59% <ø> (ø)
cassandra-4.x 25.59% <ø> (ø)
elasticsearch-5.x 19.86% <ø> (-0.02%) ⬇️
elasticsearch-6.x 19.87% <ø> (ø)
elasticsearch-7.x 20.01% <ø> (ø)
elasticsearch-8.x 20.08% <ø> (-0.02%) ⬇️
grpc-badger 19.50% <ø> (+0.01%) ⬆️
kafka 14.10% <ø> (ø)
opensearch-1.x 19.99% <ø> (ø)
opensearch-2.x 19.99% <ø> (-0.02%) ⬇️
unittests 93.21% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yurishkuro
Copy link
Member

I was wrong about code coverage, examples are not excluded. Please add hotrod to ignore in .codecov.yml

@yurishkuro
Copy link
Member

and yes, add goleak to the test files

@Pushkarm029
Copy link
Member Author

should i remove this also?

func TestDummy(t *testing.T) {
	// This is a dummy test in the root package.
	// Without it `go test -v .` prints "testing: warning: no tests to run".
}

@yurishkuro
Copy link
Member

yes you can remove dummy test

Signed-off-by: Pushkar Mishra <[email protected]>
Signed-off-by: Pushkar Mishra <[email protected]>
Signed-off-by: Pushkar Mishra <[email protected]>
@yurishkuro yurishkuro added the changelog:test Change that's adding missing tests or correcting existing tests label Jan 4, 2024
@Pushkarm029
Copy link
Member Author

seems everything is good to go now.

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@yurishkuro yurishkuro merged commit e4d7f34 into jaegertracing:main Jan 4, 2024
39 of 40 checks passed
@Pushkarm029 Pushkarm029 deleted the #5068_iI branch March 4, 2024 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:test Change that's adding missing tests or correcting existing tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants